#ifndef TEXTEDITPROXY_H
#define TEXTEDITPROXY_H

#include <QDeclarativeItem>
#include <QTextEdit>
#include <QGraphicsProxyWidget>

class TextEditProxy : public QDeclarativeItem
{
    Q_OBJECT
public:
    explicit TextEditProxy(QDeclarativeItem *parent = 0);
    
signals:
    
public slots:
    void bold();
    void italic();
    void weightInc();
    void weightDec();

private slots:


private:
    void startEdit();
    void endEdit(QTextCharFormat format);

    QTextEdit *m_textEdit;
    QGraphicsProxyWidget *m_proxy;
    QTextCursor m_cur;
};

#endif // TEXTEDITPROXY_H
